package cn.gson.springboot.model.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONArray;

import cn.gson.springboot.model.dao.DrugDao;
import cn.gson.springboot.model.mapper.DrugMapper;


@Service
@Transactional(rollbackOn=Exception.class)
public class DrugService {

	@Autowired
	private DrugMapper ypmapper;
	
	@Autowired
	private DrugDao ypdao;
	
	//请领入库查询
	public JSONArray selectAllDrug() {
		return ypmapper.selectAllDrug();
	}

}
